#
# ShoeBox
#  A start product for Plone - ShoeBox
#
# ShoeBoxTool.py
#  Providing the ShoeBoxTool
#
# Author: Christian Koller <admin@iecw.net>
#
# Released under GNU GPL v2 or later
#

from Products.CMFCore.utils import UniqueObject 
from OFS.SimpleItem import SimpleItem 
from Globals import InitializeClass 


class ShoeBoxTool (UniqueObject, SimpleItem): 
	""" ShoeBoxTool  .... """ 
	id = 'ShoeBoxTool' 
	meta_type= 'Shoe Box Tool' 
	plone_tool = 1 
	
			
	##
	## Return the link to the parent dir
	##
	def getNavigationParent(self, path):
		ret = path.split("/")
		ret.pop()
		return "/".join(ret)

## Initialize the ShoeBoxTool class
InitializeClass(ShoeBoxTool)


##
## A Simple ConnectError Error
##
class ConnectError(Exception):
	def __init__(self, value):
		self.value = value
	def __str__(self):
		return repr(self.value)

## Initialize the ConnectError class
InitializeClass(ConnectError)

